using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ClassesBasicas;
using Interfaces;
using Negocio;
using System.Data.SqlClient;

namespace Apresentacao
{
    public partial class AtualizarProjeto : Form
    {
        public Form1 frm = new Form1();
        Negocio.CadastroProjeto pro = new CadastroProjeto();
        public AtualizarProjeto()
        {
            InitializeComponent();
        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button6_Click(object sender, EventArgs e)
        {

        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void AtualizarProjeto_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'empresaFlareDataSet7.projeto' table. You can move, or remove it, as needed.
            this.projetoTableAdapter.Fill(this.empresaFlareDataSet7.projeto);

        }

        private void button1_Click(object sender, EventArgs e)
        {
            Projeto p = new Projeto();
            p.Codigo = (int)comboBox1.SelectedValue;
            frm.pro.Remover(p);
        }
    }
}